<template>
  <div class="explain-view">
    <!-- 页面头部 -->
    <div class="page-header">
      <h1 class="page-title">产品说明</h1>
      <div class="breadcrumb">首页 / 产品说明</div>
    </div>

    <!-- 产品介绍卡片 -->
    <div class="product-intro-card">
      <div class="intro-header">
        <h2 class="intro-title">区域慢病管理系统</h2>
        <div class="product-badge">V1.0</div>
      </div>
      <div class="intro-content">
        <p class="intro-text">
          区域慢病管理系统是一款专为医疗机构设计的全流程慢病管理解决方案，通过数字化手段，
          有效提升慢性病患者的管理效率和诊疗质量。系统覆盖居民档案、慢病筛查、签约管理、
          慢病全场景管理等核心功能模块，为医生提供智能辅助工具，为患者提供便捷的健康管理服务。
        </p>
      </div>
      <div class="health-icon-container">
        <div class="health-icon">🏥</div>
        <div class="health-icon">📊</div>
        <div class="health-icon">💉</div>
        <div class="health-icon">📋</div>
      </div>
    </div>

    <!-- 功能特点区域 -->
    <div class="features-section">
      <h3 class="section-title">
        <span class="section-icon">✨</span>
        系统核心功能
      </h3>
      <div class="features-grid">
        <!-- 功能卡片1 -->
        <div class="feature-card">
          <div class="feature-icon bg-blue">
            <i class="el-icon-user-solid"></i>
          </div>
          <h4 class="feature-title">居民档案管理</h4>
          <p class="feature-description">
            全面记录居民健康信息，建立电子化健康档案，支持信息快速查询、更新和统计分析。
          </p>
        </div>

        <!-- 功能卡片2 -->
        <div class="feature-card">
          <div class="feature-icon bg-green">
            <i class="el-icon-search"></i>
          </div>
          <h4 class="feature-title">慢病筛查</h4>
          <p class="feature-description">
            智能识别高风险人群，支持多种慢性病筛查流程，自动生成筛查报告。
          </p>
        </div>

        <!-- 功能卡片3 -->
        <div class="feature-card">
          <div class="feature-icon bg-purple">
            <i class="el-icon-document-checked"></i>
          </div>
          <h4 class="feature-title">签约管理</h4>
          <p class="feature-description">
            规范化签约流程管理，支持电子签约，自动提醒续约，优化医患关系管理。
          </p>
        </div>

        <!-- 功能卡片4 -->
        <div class="feature-card">
          <div class="feature-icon bg-orange">
            <i class="el-icon-monitor"></i>
          </div>
          <h4 class="feature-title">慢病全场景管理</h4>
          <p class="feature-description">
            覆盖高血压、糖尿病等多种慢性病的筛查、随访、干预、评估全流程管理。
          </p>
        </div>

        <!-- 功能卡片5 -->
        <div class="feature-card">
          <div class="feature-icon bg-red">
            <i class="el-icon-data-line"></i>
          </div>
          <h4 class="feature-title">数据分析报表</h4>
          <p class="feature-description">
            多维度健康数据分析，直观的数据可视化报表，辅助医疗机构决策。
          </p>
        </div>

        <!-- 功能卡片6 -->
        <div class="feature-card">
          <div class="feature-icon bg-teal">
            <i class="el-icon-mobile-phone"></i>
          </div>
          <h4 class="feature-title">移动应用支持</h4>
          <p class="feature-description">
            支持医生端和患者端移动应用，实现随时随地的健康管理服务。
          </p>
        </div>
      </div>
    </div>

    <!-- 适用场景区域 -->
    <div class="application-section">
      <h3 class="section-title">
        <span class="section-icon">🏢</span>
        适用场景
      </h3>
      <div class="application-list">
        <div class="application-item">
          <div class="application-badge">01</div>
          <div class="application-content">
            <h4 class="application-title">社区卫生服务中心</h4>
            <p>为社区居民提供基础慢病筛查、随访和健康管理服务</p>
          </div>
        </div>
        <div class="application-item">
          <div class="application-badge">02</div>
          <div class="application-content">
            <h4 class="application-title">乡镇卫生院</h4>
            <p>提升基层医疗机构慢病管理能力，实现分级诊疗</p>
          </div>
        </div>
        <div class="application-item">
          <div class="application-badge">03</div>
          <div class="application-content">
            <h4 class="application-title">二级及以上医院</h4>
            <p>管理出院后慢病患者，实现医院与基层医疗机构的信息互通</p>
          </div>
        </div>
        <div class="application-item">
          <div class="application-badge">04</div>
          <div class="application-content">
            <h4 class="application-title">区域医疗联合体</h4>
            <p>整合区域内医疗资源，实现慢病患者的全周期健康管理</p>
          </div>
        </div>
      </div>
    </div>

    <!-- 产品优势区域 -->
    <div class="advantages-section">
      <h3 class="section-title">
        <span class="section-icon">💪</span>
        产品优势
      </h3>
      <div class="advantages-grid">
        <div class="advantage-item">
          <div class="advantage-icon">
            <i class="el-icon-check"></i>
          </div>
          <div class="advantage-content">
            <h4 class="advantage-title">标准化流程</h4>
            <p>遵循国家基本公共卫生服务规范，确保服务质量</p>
          </div>
        </div>
        <div class="advantage-item">
          <div class="advantage-icon">
            <i class="el-icon-check"></i>
          </div>
          <div class="advantage-content">
            <h4 class="advantage-title">智能化辅助</h4>
            <p>AI辅助诊疗建议，提升医生工作效率和准确性</p>
          </div>
        </div>
        <div class="advantage-item">
          <div class="advantage-icon">
            <i class="el-icon-check"></i>
          </div>
          <div class="advantage-content">
            <h4 class="advantage-title">全周期管理</h4>
            <p>从筛查到随访的全流程管理，实现慢病防控闭环</p>
          </div>
        </div>
        <div class="advantage-item">
          <div class="advantage-icon">
            <i class="el-icon-check"></i>
          </div>
          <div class="advantage-content">
            <h4 class="advantage-title">数据安全</h4>
            <p>符合医疗数据安全标准，保障患者隐私</p>
          </div>
        </div>
      </div>
    </div>

    <!-- 底部信息 -->
    <div class="footer-section">
      <div class="footer-content">
        <div class="footer-logo">
          <i class="el-icon-medal"></i>
          <span>区域慢病管理系统</span>
        </div>
        <div class="footer-info">
          <p>作品编号：DM2024001</p>
          <p>软件版本：V1.0</p>
          <p>© 2024 区域慢病管理系统 版权所有</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref, onMounted } from 'vue'
import { ElMessage } from 'element-plus'

// 页面加载时的欢迎消息
onMounted(() => {
  ElMessage.info('欢迎使用区域慢病管理系统')
})
</script>

<style scoped>
/* 全局样式 */
.explain-view {
  padding: 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  min-height: 100vh;
  font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 页面标题区域 */
.page-header {
  margin-bottom: 32px;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  text-align: center;
}

.page-title {
  margin: 0 0 12px 0;
  font-size: 32px;
  font-weight: 700;
  color: #0369a1;
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.breadcrumb {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* 产品介绍卡片 */
.product-intro-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #0369a1);
}

.intro-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.intro-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #0369a1;
}

.product-badge {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  max-width: 900px;
  margin: 0 auto 24px;
}

.health-icon-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.health-icon {
  font-size: 32px;
  animation: float 3s ease-in-out infinite;
}

.health-icon:nth-child(2) {
  animation-delay: 0.5s;
}

.health-icon:nth-child(3) {
  animation-delay: 1s;
}

.health-icon:nth-child(4) {
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 通用区域样式 */
.features-section,
.application-section,
.advantages-section {
  margin-bottom: 40px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 600;
  color: #0369a1;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0ea5e9;
}

.section-icon {
  font-size: 28px;
}

/* 功能特点样式 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
  font-size: 24px;
}

.feature-icon.bg-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.feature-icon.bg-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.feature-icon.bg-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.feature-icon.bg-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.feature-icon.bg-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.feature-icon.bg-teal {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.feature-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.feature-description {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* 适用场景样式 */
.application-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.application-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.application-item:hover {
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.12);
  transform: translateX(4px);
}

.application-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.application-content h4 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.application-content p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* 产品优势样式 */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.advantage-item:hover {
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.12);
}

.advantage-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.advantage-content h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.advantage-content p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* 底部样式 */
.footer-section {
  margin-top: 64px;
  padding: 32px;
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  border-radius: 16px;
  color: white;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-logo i {
  font-size: 32px;
}

.footer-info p {
  margin: 4px 0;
  font-size: 14px;
  opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .explain-view {
    padding: 16px;
  }
  
  .page-header {
    padding: 20px 24px;
    margin-bottom: 24px;
  }
  
  .page-title {
    font-size: 28px;
  }
  
  .product-intro-card {
    padding: 24px;
    margin-bottom: 24px;
  }
  
  .intro-title {
    font-size: 24px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .application-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .health-icon-container {
    gap: 16px;
  }
  
  .health-icon {
    font-size: 24px;
  }
}
</style>